set title "Direct computation energy conservation"
set ylabel "Energy"
set xlabel "Iterations"
plot "m1energy.txt" using 2:4 with lines title "Kinetic", \
"m1energy.txt" using 2:6 with lines title "Potential", \
"m1energy.txt" using 2:($4+$6) with lines title "Total"
